﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebChatSerivce.Models
{
    interface IDatabase
    {
        WebChatBaseModel GetSingleObject(int id);
        IEnumerable<WebChatBaseModel> GetAllObjects();
        void AddObject(WebChatBaseModel model);
        void UpdateObject(WebChatBaseModel model);
        void RemoveObject(WebChatBaseModel model);
        void SaveChanges();
        void Dispose();

    }
}
